package com.ruoyi.project.module.gs;


import com.ruoyi.common.core.web.controller.BaseController;

import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.project.domain.ISysUser;
import com.ruoyi.system.api.domain.SysRole;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.project.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;



@RestController
@RequestMapping("/gsuser")
public class GsSysUserController extends BaseController
{
    @Autowired
    private ISysUserService userService;
    @Autowired
    private ISysRoleService sysRoleService;
    /**
     * 获取用户列表
     */

    @GetMapping("/list")
    public TableDataInfo list(SysRole role)
    {

        List<SysRole> list = sysRoleService.selectRoleList(role);
        return getDataTable(list);
    }

}
